package com.beijing.action.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;

import com.beijing.baseaction.BaseAction;
import com.beijing.seventykg.po.Book;
import com.beijing.service.bookService.IBookTitleService;

@Scope(value = "prototype")
@SuppressWarnings({ "serial", "rawtypes" })
public class TestMybatisAction extends BaseAction {

    @Autowired
    private IBookTitleService bookTitleService;

    private List<Book> list;

    public String testMybatis() {
        List<Book> book = bookTitleService.getBookTitle();
        System.out.println("---------------"+book);
        return "test_mybatis";
    }

    // ==========================get/set=======================================

    public List<Book> getList() {
        return list;
    }

    public void setList(List<Book> list) {
        this.list = list;
    }

}
